package com.spvs.job.mapper;

import com.spvs.job.domain.EquipPointRecord;

import java.util.List;

/**
 * 点检记录Mapper接口
 *
 * @author supervision
 * @date 2024-06-09
 */
public interface EquipPointRecordMapper
{
    /**
     * 查询点检记录
     *
     * @param id 点检记录主键
     * @return 点检记录
     */
    public EquipPointRecord selectEquipPointRecordById(Long id);

    /**
     * 查询点检记录列表
     *
     * @param equipPointRecord 点检记录
     * @return 点检记录集合
     */
    public List<EquipPointRecord> selectEquipPointRecordList(EquipPointRecord equipPointRecord);

    /**
     * 新增点检记录
     *
     * @param equipPointRecord 点检记录
     * @return 结果
     */
    public int insertEquipPointRecord(EquipPointRecord equipPointRecord);

    /**
     * 修改点检记录
     *
     * @param equipPointRecord 点检记录
     * @return 结果
     */
    public int updateEquipPointRecord(EquipPointRecord equipPointRecord);

    /**
     * 删除点检记录
     *
     * @param id 点检记录主键
     * @return 结果
     */
    public int deleteEquipPointRecordById(Long id);

    /**
     * 批量删除点检记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEquipPointRecordByIds(Long[] ids);

    EquipPointRecord selectEquipPointRecordByPlanId(Long planRecordId);

    EquipPointRecord selectEquipPointRecordByCode(Long code);
}
